//
//  WechatHeadImgCell.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/29.
//

#import "WechatHeadImgCell.h"

@implementation WechatHeadImgCell


-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatcelllist];
    }
    return self;
}

-(void)creatcelllist{
    
    NSArray *arr = @[@"姓名",@"职位",@"电话",@"驾校"];
    
    NSArray *parameterArr = @[@"刘四海",@"教练",@"13117431879",@"安达驾校"];
    
    
    for (int i = 0 ; i < arr.count; i++) {
        
        
        UILabel *nameLab = [[UILabel alloc]initWithFrame:CGRectMake(15, 15+i*45, APPwidth-30, 45)];
        nameLab.text = arr[i];
        nameLab.textColor = rgba(51, 51, 51, 1);
        nameLab.textAlignment = 0;
        nameLab.font = [UIFont systemFontOfSize:16];
        [self.contentView addSubview:nameLab];
        
        UILabel *parameterLab = [[UILabel alloc]initWithFrame:CGRectMake(nameLab.width-nameLab.width/2, 0, nameLab.width/2, 45)];
        parameterLab.text = parameterArr[i];
        parameterLab.textColor = rgba(51, 51, 51, 1);
        parameterLab.textAlignment = 2;
        parameterLab.font = [UIFont systemFontOfSize:16];
        [nameLab addSubview:parameterLab];
        
        UIView *line = [[UIView alloc]initWithFrame:CGRectMake(0, nameLab.height-1, nameLab.width, 1)];
        line.backgroundColor = rgba(245, 245, 250, 1);
        [nameLab addSubview:line];
        
    }
    
    
}





- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

@end
